package com.api.shopapi.mapper;

import com.api.shopapi.entity.YJHeader;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface YJHeaderMapper {

    @Insert("insert into yj_header (HeaderCode,Namespace,Name,PayLoadVersion,Token,MessageId,GwId,AddTime) values " +
            "(#{header.HeaderCode},#{header.Namespace},#{header.Name},#{header.PayLoadVersion},#{header.Token},#{header.MessageId},#{header.GwId},#{header.AddTime})")
    int insert(@Param("header") YJHeader header);
}
